﻿#define GoldValueBarName//huangshenyu
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FortuneHeavenCommon.DataMap
{
    public partial class RechargeCodeRecord
    {
        public const string TABLE_NAME = "RechargeCodeRecord";
#if GoldValueBarName
        public const string INSERT_SQL = "insert into RechargeCodeRecord([RechargeCode],[RechargeValue],[Status],[NetBarId],[CreateTime],[UsedTime],UserID) values (@RechargeCode,@RechargeValue,@Status,@NetBarId,@CreateTime,@UsedTime,@UserID)";
        public const string UPDATE_SQL = "UPDATE RechargeCodeRecord SET [RechargeCode]=@RechargeCode,[RechargeValue]=@RechargeValue,[Status]=@Status,[NetBarId]=@NetBarId,[CreateTime]=@CreateTime,[UsedTime]=@UsedTime,[UserID] =@UserID where ID = @ID";
#else
        public const string INSERT_SQL = "insert into RechargeCodeRecord([RechargeCode],[RechargeValue],[Status],[CreateTime],[UsedTime],UserID) values (@RechargeCode,@RechargeValue,@Status,@CreateTime,@UsedTime,@UserID)";
        public const string UPDATE_SQL = "UPDATE RechargeCodeRecord SET [RechargeCode]=@RechargeCode,[RechargeValue]=@RechargeValue,[Status]=@Status,[CreateTime]=@CreateTime,[UsedTime]=@UsedTime,[UserID] =@UserID where ID = @ID";
#endif
        /// <summary>
        ///
        /// </summary>
        public int ID
        {
            get;
            set;
        }
        /// <summary>
        ///
        /// </summary>
        public string RechargeCode
        {
            get;
            set;
        }
        /// <summary>
        ///
        /// </summary>
        public int RechargeValue
        {
            get;
            set;
        }
        /// <summary>
        ///
        /// </summary>
        public int Status
        {
            get;
            set;
        }

#if GoldValueBarName
        /// <summary>
        /// 网吧ID
        /// </summary>
        public int NetBarId
        {
            get;
            set;
        }
#endif
        /// <summary>
        ///
        /// </summary>
        public DateTime CreateTime
        {
            get;
            set;
        }
        /// <summary>
        ///
        /// </summary>
        public DateTime UsedTime
        {
            get;
            set;
        }

        public int UserID
        {
            get;
            set;
        }
    }

}
